#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
#include <assert.h>
size_t my_strlen(char* s)
{
	assert(s);
	char* p = s;
	while (*p != '\0')
		p++;
	return p - s;
}


int main()
{	
	const char* str1 = "abcdef";
	char arr1[] = { "hello word!" };
	char arr2[] = { 'a','b','c'};
	size_t ret1 = strlen(str1);
	size_t ret2 = strlen(arr1);
	size_t ret3 = strlen(arr2);
	printf("%zd\n", ret1);
	printf("%zd\n", ret2);
	printf("%zd\n", ret3);
	char* test = arr2;
	int count = 0;
	while ((*test)!='\0')
	{
		printf("%c ", *test);
		test++;
		count++;
	}
	printf("%d", count);
	return 0;
}